<?php
	include_once ("../configs/config.php");     //配置参数
	include_once ("../common/mysql.class.php");   //MySQL操作类
	include_once ("../common/action.class.php");   //MySQL操作类
	
	$user_id 	= $_COOKIE['user_id'];
	$bottle_id 	= $_POST['bottle_id'];
	$silent	 	= $_POST['silent'];

	if($silent=="checked"){
		$need_prompt = 0;
	}else{
		$need_prompt = 1;
	}
	$db = new action($mydbhost, $mydbuser, $mydbpw, $mydbname, "temp_conn", $mydbcharset, $mydbtag); //实例化数据库类
	$ret = $db->set_silent($user_id,$bottle_id,$need_prompt);
?>
